package model

import (
	layModel "zsc-boot/app/system_layer/model"
	"zsc-boot/core/orm"
)

type OrderAdd struct {
	orm.Model
	OrderId          uint                       `json:"orderId" gorm:"column:order_id;size:32;comment:订单ID"`
	OrderInfo        *Order                     `json:"-" gorm:"foreignKey:OrderId"`
	Money            uint                       `json:"money" gorm:"column:money;comment:金额"`
	PayMethod        string                     `json:"payMethod" gorm:"column:pay_method;size:32;comment:对公打款或企业个微"`
	PayDate          string                     `json:"payDate" gorm:"column:pay_date;comment:支付时间"`
	ServiceDocuments []layModel.ServiceDocument `json:"serviceDocuments" gorm:"polymorphic:Owner;polymorphicValue:order_add_doc"`
}

func (OrderAdd) TableName() string {
	return "order_add"
}

func (OrderAdd) TableComment() string {
	return "签约加帐单表"
}
